<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd

">

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="my" uri="http://www.trkj.com/tr1702/tags" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>求职人员登记</title>
<script type="text/javascript"src="<c:url value="/js/jquery-easyui-1.5.4.2/jquery.min.js"/>"></script>
<script type="text/javascript"src="<c:url value="/js/jquery-easyui-1.5.4.2/jquery.easyui.min.js"/>"></script>
<script type="text/javascript"src="<c:url value="/js/jquery-easyui-1.5.4.2/locale/easyui-lang-zh_CN.js"/>"></script>
<link rel="stylesheet" type="text/css"href="<c:url value="/js/jquery-easyui-1.5.4.2/themes/default/easyui.css"/>" />
<link rel="stylesheet" type="text/css"href="<c:url value="/js/jquery-easyui-1.5.4.2/themes/icon.css"/>" />

<style type="text/css">
	.kontge{
		padding-right: 10px;
	}
</style>
	
</head>

<body>
	<script type="text/javascript">
	/*删除*/
	function jsr_dlt(jsrId){
 		$.messager.confirm('确认', '您确定要删除吗？', function(v){
 			if(v){
 				$.post("hr_jsr_form_dlt", {jsrId:jsrId}, function(){
					$('.jsr_datagrid_table').datagrid('reload');
				});
 			}
			
		});
 	}
	/*操作图标*/
	var jsr_Formatter = function(value,row,index){
		var  del="";
		<my:g id="116"> del = "<a class='easyui-linkbutton cell_btn_del' onclick='jsr_dlt(" + row.jsrId + ")'>删除</a>";</my:g>
		return del; 
	}
	/* 操作图标*/
	$(".jsr_datagrid_table").datagrid({onLoadSuccess: function(){
		$(".cell_btn_del").linkbutton({height:18,plain:true});
	}});
		$(function() {
			/* 点击添加进入添加面板 */
			$(".jsr_add").linkbutton({onClick : function() {
				$(".jsr_trainhomepage2").panel({href:"hr_jsr_add"});
			}});
			
			<my:g id="115">
			$(".jsr_datagrid_table").datagrid({
				onDblClickRow:function(rowIndex){//鼠标双击事件
			        $(".jsr_datagrid_table").datagrid("selectRow",rowIndex);//选中此行
			        var currentRow = $(".jsr_datagrid_table").datagrid("getSelected");//获得选中行的信息
			        var positionId = new Object(currentRow['position']).positionId;
			        var recplanId = new Object(currentRow['recruitplan']).recplanId;
					$(".jsr_trainhomepage2").panel({href:"hr_jsr_info?jsrId="+currentRow["jsrId"]+"&positionId="+positionId+"&recplanId="+recplanId});

			    }
			});
			</my:g>
		});
		
		
		
		$('.search_a').linkbutton({
			onClick : function() {
				$('.jsr_datagrid_table').datagrid({ url:'lzs_Jobseekersregisterchaxun?text='+$('#search_input_a').val() });//重新指定url
                alert(text)
				$('.jsr_datagrid_table').datagrid('load',{  
                });
			}
		});
	</script>
	<div class="easyui-panel jsr_trainhomepage2"  data-options="fit:true,border:false">
		<!-- 按钮 -->
		<div id="bt_jsr">
	<my:g id="114">		<a id="insert" class="easyui-linkbutton jsr_add" data-options="iconCls:'icon-add',text:'新增',width:80"></a></my:g>
			<span class="kontge"></span>
			<a class="easyui-linkbutton" data-options="iconCls:'icon-print'"></a>
			<a class="easyui-linkbutton" data-options="iconCls:'icon-reload'"></a>
			<a class="easyui-linkbutton" data-options="iconCls:'icon-print'"></a>
			<a class="easyui-linkbutton" data-options="iconCls:'icon-reload'"></a>
			
		 <input id="search_input_a" class="easyui-textbox " data-options=" width:120,labelWidth:30"> 
	     <a class="easyui-linkbutton search_a" data-options="iconCls:'icon-search',text:'搜索'"></a>
		</div>
		
		<!-- 数据表 -->
		<table class="easyui-datagrid jsr_datagrid_table" data-options="
			fit:true,
			singleSelect:true,
			nowrap:true,
			toolbar:'#bt1',
			rownumbers:true,
			url:'hr_jsr_find',
			<!-- 分页 -->
			pagination:true,
			<!-- ulr: -->
			pageSize:5,
			pageList:[5,10,15]
		">
			<thead>
				<tr>
	
<!--
电键
姓名
手机号码
应聘职位
招聘计划
招聘方式
通知面试
计划面试日期
时间
招聘结果
备注
-->
					<th data-options="field:'jsrId',width:60">电键</th>
					<th data-options="field:'jsrName',width:60">姓名</th>
					<th data-options="field:'jsrPhone',width:160">手机号码</th>
					<th data-options="field:'positionName',width:60,
					formatter: function(value,row,index){
					return new Object(row['position']).positionName;
					} ">应聘职位</th>
					<th data-options="field:'recplanDescribe',width:100,
					formatter: function(value,row,index){
					return new Object(row['recruitplan']).recplanDescribe;
					} ">招聘计划</th>
					<th data-options="field:'jsrMode',width:100">招聘方式</th>
					<!-- <th data-options="field:'recplanDescribe',width:100">通知面试</th> -->
					<th data-options="field:'jsrPlantime',width:160">计划面试日期</th>
					<th data-options="field:'jsrResult',width:100">招聘结果</th>
					<th data-options="field:'jsrRemarks',width:160">备注</th>
					<th data-options="field:'operation',width:200,formatter:jsr_Formatter"></th>
				</tr>
			</thead>
			<tbody>
				
				
			</tbody>
		</table>
	</div>
</body>
</html>
